﻿/*===================================================
* CLR版本  : 4.0.30319.42000 
* 类名称   : Game
* 文 件 名 : Game 
* 类描述   :
* 创建人   : oream
* 创建时间 : 2018/2/9 23:17:58
* 修改人   : 
* 修改时间 :
* 版本： @version 1.0
=====================================================*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotfix
{
  public static class Hotfix
  {

    private static Scene scene;

    public static Scene Scene
    {
      get
      {
        return scene ?? (scene = new Scene());
      }
    }



    private static EventSystem eventSystem;

    public static EventSystem EventSystem
    {
      get
      {
        return eventSystem ?? (eventSystem = new EventSystem());
      }
    }

    private static ObjectPool objectPool;

    public static ObjectPool ObjectPool
    {

      get
      {
        return objectPool ?? (objectPool = new ObjectPool());
      }
    }


    public static void Clone()
    {
      eventSystem = null;
    }

  }
}
